import request from "@/utils/request";

// 查询考核详情列表
export function listBizAssessDetailsInfo(query) {
  return request({
    url: "/biz/bizAssessDetailsInfo/list",
    method: "get",
    params: query,
  });
}

// 查询考核详情详细
export function getBizAssessDetailsInfo(id) {
  return request({
    url: "/biz/bizAssessDetailsInfo/" + id,
    method: "get",
  });
}

// 新增考核详情
export function addBizAssessDetailsInfo(data) {
  return request({
    url: "/biz/bizAssessDetailsInfo",
    method: "post",
    data: data,
  });
}

// 修改考核详情
export function updateBizAssessDetailsInfo(data) {
  return request({
    url: "/biz/bizAssessDetailsInfo",
    method: "put",
    data: data,
  });
}

// 删除考核详情
export function delBizAssessDetailsInfo(id) {
  return request({
    url: "/biz/bizAssessDetailsInfo/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizAssessDetailsInfo/findMaxSort",
    method: "get",
  });
}
// 导出考核详情
export function exportBizAssessDetailsInfo(query) {
  return request({
    url: "/biz/bizAssessDetailsInfo/export",
    method: "get",
    params: query,
  });
}
